export const hasPermissions = (currentUserPerm, perm) => {
    return (currentUserPerm & perm) === perm;
}